package com.woniuxy.entity;

import java.util.Date;
import java.util.List;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;


/*
@author Jan
@create 2020-05-20 19:00

*/

@Data
public class FoodComment {
    private Integer id;

    /**
     * 美食id
     */
    private Integer foodId;

    private Integer userId;

    /**
     * 评论时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    private Date time;

    /**
     * 评论内容
     */
    private String comment;
    /*
       用户
        */
    private User user;
}